package com.leizi.igym.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Author: leizi0110
 * @CreateTime: 2024-04-29  20:18
 * @Description:
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PostDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = 8750541728815183881L;

    // 帖子id
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    // 帖子标题
    private String title;

    // 帖子内容
    private String content;

    // 帖子图片
    private String pictures;
}
